package com.dao.impl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.mongodb.core.MongoTemplate;
import org.springframework.stereotype.Component;

import com.bean.TravelUser;
import com.dao.TravelUserDao;
@Component("travelUserDao")
public class TravelUserDaoImpl implements TravelUserDao{

	@Autowired
	private MongoTemplate mongoTemplate;

	@Override
	public TravelUser getTravelUserByWeiboid(String userId) {
		TravelUser travelUser=mongoTemplate.findById(userId, TravelUser.class);
		return travelUser;
	}
}